package comp

import (
	"cade/src/game/msg"
	"time"
)

type IPlayer interface {
	SetTimeout(ts time.Time, f func()) int64
	CancelTimer(id int64)

	IsOnline() bool
	SendMsg(message msg.Message)

	GetId() string
	GetName() string
	GetLoginTs() time.Time
	GetLoginIP() string
}
